<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Chatroom extends Model
{
    //
    protected $table = 'chatroom';


    protected function getDateFormat()
    {
        return 'U';
    }

    protected $guarded = [''];

    /**
     *获取关联的活动
     */
    public function activity()
    {
        return $this->belongsTo('App\Models\Activity', 'activity_id', 'id');
    }





}
